<?php

class ConfirmationForm extends CFormModel
{
    public $code;
    public $email;
    public $verifycode;
    
    public $status;
    public $message;



    public function rules()
    {
        return array(
            array('code, email', 'required'),
            array('code, email', 'length', 'min'=>4),
            array('code, email', 'length', 'max'=>50),
            array('email', 'email'),
            array('verifycode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements()),
        );
    }
    
    
    public function attributeLabels()
    {
        return array(
            'email'=>'Email',
            'code'=>'Confirmation code',
            'verifycode'=>'Confirm you are not alien',
        );
    }
           
}

